package com.edevp.common.core.logback.converter;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import com.edevp.common.core.util.CommonUtil;

/**
 * logback 扩展属性
 * @author Blueeyedboy
 * @date 2022-07-06 6:48 PM
 **/
public class UserNameConverter extends ClassicConverter {
	@Override
	public String convert(ILoggingEvent event) {
		String value = null;
		if(CommonUtil.isNull(value)){
			value = "张三";
		}
		return value;
	}
}